
<div class="grid_16" id="site_info">
  <div class="box">
    <p>Olá, <?php echo ucfirst($_SESSION['login']); ?>!. Sistema de controle interno de vendas - Patrícia Noivas</p>
  </div>
</div>
<div class="clear"></div>

<!--<script type="text/javascript" src="js/jquery-1.8.2.js"></script>-->
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery-fluid16.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.9.1.custom.min.js"></script>
<script type="text/javascript" src="js/jquery.ui.datepicker-pt-BR.js"></script>
<!-- 
        <script src="http://datejs.googlecode.com/files/date.js"></script>bibliotecas -->
<!-- bibliotecas -->
<script type="text/javascript" src="bibliotecas/fancybox/jquery.mousewheel-3.0.6.pack.js"></script>
<script type="text/javascript" src="bibliotecas/fancybox/jquery.fancybox.js?v=2.0.6"></script>
<script type="text/javascript" src="bibliotecas/fancybox/jquery.easing-1.3.pack.js"></script>
<script type='text/javascript' src='bibliotecas/uploadify/swfobject.js'></script>
<script type='text/javascript' src='bibliotecas/uploadify/jquery.uploadify.v2.1.4.min.js'></script>
<script type='text/javascript' src='bibliotecas/simplegallery/simplegallery.js'></script>
<script type='text/javascript' src='bibliotecas/Datejs-all/build/date.js'></script>
<script type='text/javascript' src='bibliotecas/jQuery.popeye/lib/popeye/jquery.popeye-2.1.js'></script>
<script type='text/javascript' src='bibliotecas/galleria/galleria-1.3.min.js'></script>


<!--<script src="js/jquery.maskedinput-1.1.4.pack.js"></script>-->


<script type="text/javascript" src="js/cnpj_cpf.js"></script>
<!--js para impressao-->
<script src="js/jquery.PrintArea.js_4.js" type="text/javascript"></script>
<script src="js/jquery.printElement.js" type="text/javascript"></script>
<script src="js/jquery.mask.js"></script>
<script src="js/jquery.maskMoney.js" type="text/javascript"></script>
<script src="js/jquery-PricePlugin.js" type="text/javascript"></script>


<script type="text/javascript" src="js/FuncoesPadrao.js"></script>
<script type="text/javascript" src="js/clientes.js"></script>
<script type="text/javascript" src="js/usuario.js"></script>
<script type="text/javascript" src="js/produtos.js"></script>
<script type="text/javascript" src="js/categorias.js"></script>
<script type="text/javascript" src="js/vendas.js"></script>
<script type="text/javascript" src="js/fornecedor.js"></script>
<script type="text/javascript" src="js/consulta.js"></script>
<script type="text/javascript" src="js/recebimento.js"></script>
<script type="text/javascript" src="js/costura.js"></script>
<script type="text/javascript" src="js/lavanderia.js"></script>
<script type="text/javascript" src="js/entrega.js"></script>
<script type="text/javascript" src="js/devolucao.js"></script>
<script type="text/javascript" src="js/agendamento.js"></script>
<script type="text/javascript" src="js/livro.js"></script>
<script type="text/javascript" src="js/relatorios.js"></script>
<script>
			
			
			
			
			//controle do enter
			$(document).keypress(function(e) {
				if(e.which == 13) {
					
					var verifica = $('#palavra').is(':focus');
					if (verifica ){
						$('.Buscar').click();
					}else{
						
						$('form').submit();
					}
				}
			});
			
			
			$(document).ready(function(){
			
				//controle do focus
				$("#central").delegate( "*", "focus blur", function( event ) {
					var elem = $( this );
					setTimeout(function() {
					   elem.toggleClass( "focused", elem.is( ":focus" ) );
					}, 0);
				});
                
                //clica em numero de paginação
			
				//Carrega p�ginas que n�o possuem alvo definido na DIV central----------
				 $("a").each(function(){ 
					$(this).click(function(){ 
					
						if($(this).attr("href")!="#" && $(this).attr("target")==''){ 
							
							zerarSession('palavra');
							zerarSession('categoria');
							return carregarPaginaAjax($(this).attr("href"));
							
						}
					});
				 });
				 
				 
				 $('.pg').live('click',function(){
				 		
						id = $(this).attr('id');
						$('#pagina').val(id);
						$('#buscarProdutos').click();
						$('#buscarProdutosVendas').click();			
				 });
				 
				 //função para post generico
				 $("form").live("submit", function(){
				
					var pagina = $(this).attr("action");
					enviarDadosFormularioPrincipal(pagina);
					return false;
					
				});
				
				
				 
				 
				//mascaras padrao
				 $(".data").mask("99/99/9999");
				 $(".cep").mask("99.999-999");
				 $("#cpf").mask("999.999.999-99");	
			  	 $(".tel").mask("(99)9999-9999");
				 
				//carrega os eventos da semana
				   carregarEventosSemana();	
				 
				 
				 
		   }); // fim do document ready
			
		
		</script>
</body></html>